package objects;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JRadioButton;

import clue.editor.ClueFrame;

public class ClueRadio extends JRadioButton {

	private static final long serialVersionUID = 1L;

	public ClueRadio(String text)
	{
		super(text);
		addActionListener(getActionListener());
	}
	
	private ActionListener getActionListener()
	{
		return new ActionListener() {
			
			@Override
			public void actionPerformed(ActionEvent e) {
				ClueFrame.getInstance().addEdit();
			}
		};
	}
}
